import request from '@/router/axios';
const urlPrefix = '/admin/video-topic';

export function list(data) {
    return request.post(urlPrefix + '/list', data);
}
export function create(data) {
    return request.post(urlPrefix + '/add', data);
}
export function update(data) {
    return request.post(urlPrefix + '/modify', data);
}
export function removeById(id) {
    return request.post(urlPrefix + '/delete', {
        id
    });
}
export function removeByIds(ids) {
    return request.post(urlPrefix + '/delete-by-ids', {
        ids
    });
}

export function check({ id, checkStatus, checkRemark }) {
    return request.post(urlPrefix + '/check', { id, checkStatus, checkRemark });
}

export function batchCheck({ ids, checkStatus, checkRemark }) {
    return request.get(urlPrefix + '/batch-check', {
        ids,
        checkStatus,
        checkRemark
    });
}

export function detail(id) {
    return request.post(urlPrefix + '/detail',{id});
}

export function checkRealAuth({id,checkStatus,checkRemark}){
    return request.post(urlPrefix + '/check',{
        id,checkStatus,checkRemark
    });
}

export function batchCheckRealAuth({ids,checkStatus,checkRemark}){
    return request.post(urlPrefix + '/check',{
        ids,checkStatus,checkRemark
    });
}
